#!/usr/bin/env python

import sys, os

cmd = "thunderbird -compose attachment='"
url = "file://%s,"

args = sys.argv[1:]
for fn in args:
    cmd += url%os.path.abspath(fn)
cmd = cmd[:-1]	# remove last ,
cmd+="'"	# add closing '

print cmd
os.system(cmd)
